package net.qhzw.vip.qiyu.feign;

import net.qhzw.vip.qiyu.entity.DtsUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "lease-server", contextId = "DtsUser")
public interface DtsUserFeignClent {

    @GetMapping("/dts/user")
    List<DtsUser> getDtsUser(@RequestParam Long communityId);


    @GetMapping("/dts/user/{id}")
    DtsUser getDtsUserById(@PathVariable Long id);


}
